import request from '@/utils/request'

// 查询平台权益列表
export function listPlatformRights(query) {
  return request({
    url: '/system/platformRights/list',
    method: 'get',
    params: query
  })
}

// 查询平台权益详细
export function getPlatformRights(id) {
  return request({
    url: '/system/platformRights/' + id,
    method: 'get'
  })
}

// 新增平台权益
export function addPlatformRights(data) {
  return request({
    url: '/system/platformRights',
    method: 'post',
    data: data
  })
}

// 修改平台权益
export function updatePlatformRights(data) {
  return request({
    url: '/system/platformRights',
    method: 'put',
    data: data
  })
}

// 删除平台权益
export function delPlatformRights(id) {
  return request({
    url: '/system/platformRights/' + id,
    method: 'delete'
  })
}
